import request from "@/utils/request";

// 查询客户回访记录列表
export function listRemark(query) {
  return request({
    url: "/custom/remark/list",
    method: "get",
    params: query,
  });
}

// 查询客户回访记录详细
export function getRemark(id) {
  return request({
    url: "/custom/remark/" + id,
    method: "get",
  });
}

// 新增客户回访记录
export function addRemark(data) {
  return request({
    url: "/custom/remark",
    method: "post",
    data: data,
  });
}

// 修改客户回访记录
export function updateRemark(data) {
  return request({
    url: "/custom/remark",
    method: "put",
    data: data,
  });
}

// 删除客户回访记录
export function delRemark(id) {
  return request({
    url: "/custom/remark/" + id,
    method: "delete",
  });
}
